import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

class RouterView extends StatelessWidget {
  final String id;

  const RouterView({super.key, required this.id});

  @override
  Widget build(BuildContext context) {
    print(id);
    return Scaffold(
      appBar: AppBar(
        title: Text("路由参数"),
      ),
      body: Column(
        children: [
          Text('ces'),
          ElevatedButton(
              onPressed: () {
                context.go("/my");
              },
              child: Text("跳转我的"))
        ],
      ),
    );
  }
}
